<?php


namespace frontend\controllers;
use yii\web\Controller;
use Yii;
use frontend\models\User;
use frontend\models\Goods;
use yii\redis\Session;
use frontend\models\Collect;
use frontend\controllers\BaseController;
class CollectController extends Controller
{
   /*
    * 收藏*/
     public function actionIndex(){
        $user_id=User::getUserId();
        $goods_id=Collect::getcollect($user_id);
//var_dump($goods_id);die;
       $collectgoods=Goods::getGoods($goods_id);
       var_dump($collectgoods);
   }

}